(global.webpackJsonp = global.webpackJsonp || []).push([ [ "pages/delivery/insurance/insurance" ], {
    "26d5": function(n, e, i) {
        (function(n) {
            i("98af"), a(i("66fd"));
            var e = a(i("df8d"));
            function a(n) {
                return n && n.__esModule ? n : {
                    default: n
                };
            }
            wx.__webpack_require_UNI_MP_PLUGIN__ = i, n(e.default);
        }).call(this, i("543d").createPage);
    },
    "3bb7": function(n, e, i) {
        i.d(e, "b", function() {
            return a;
        }), i.d(e, "c", function() {
            return r;
        }), i.d(e, "a", function() {});
        var a = function() {
            this.$createElement, this._self._c;
        }, r = [];
    },
    "5bcf": function(n, e, i) {
        var a = i("7925");
        i.n(a).a;
    },
    7925: function(n, e, i) {},
    9186: function(n, e, i) {
        i.r(e);
        var a = i("9ade"), r = i.n(a);
        for (var c in a) "default" !== c && function(n) {
            i.d(e, n, function() {
                return a[n];
            });
        }(c);
        e.default = r.a;
    },
    "9ade": function(n, e, i) {
        (function(n) {
            Object.defineProperty(e, "__esModule", {
                value: !0
            }), e.default = void 0;
            var i = {
                data: function() {
                    return {
                        insurance: {
                            insuranceValue: "",
                            insurancePrice: "￥--"
                        },
                        list: [],
                        express_code: "",
                        express_channel: ""
                    };
                },
                computed: {
                    disabled: function() {
                        var n = this.insurance.insuranceValue, e = this.insurance.insurancePrice;
                        return "" === n || "￥--" == e;
                    }
                },
                onLoad: function() {
                    var n = this.$db.get("expressInfo").name, e = this.$db.get("expressInfo").channel;
                    this.express_code = n, this.express_channel = e, "" == this.$db.get("insurance").insuranceValue ? (this.insurance.insuranceValue = "", 
                    this.insurance.insurancePrice = "￥--") : (this.insurance.insuranceValue = this.$db.get("insurance").insuranceValue, 
                    this.insurance.insurancePrice = this.$db.get("insurance").insurancePrice);
                },
                methods: {
                    onInput: function(n) {
                        var e = this, i = n.detail.value, a = this.$db.get("expressInfo").name, r = this.$db.get("expressInfo").channel;
                        if (i >= 2e4) return this.$common.errorToShow("实际货物价值大于20000，不支持保价！"), void (this.insurance.insurancePrice = "￥--");
                        this.$api.computeOfferApi({
                            insuranceValue: i,
                            express_code: a,
                            express_channel: r
                        }, function(n) {
                            if ("1" != n.code) return e.$common.errorToShow(n.msg), e.insurance.insuranceValue = "", 
                            void (e.insurance.insurancePrice = "￥--");
                            e.insurance.insuranceValue = i, e.insurance.insurancePrice = n.data || "￥--";
                        });
                    },
                    confirm: function() {
                        if (!this.disabled) {
                            var e = {
                                insuranceValue: this.insurance.insuranceValue,
                                insurancePrice: this.insurance.insurancePrice
                            };
                            this.$db.set("insurance", e), n.navigateBack();
                        }
                    },
                    quxiao: function() {
                        this.$db.set("insurance", {
                            insuranceValue: "",
                            insurancePrice: ""
                        }), n.navigateBack();
                    }
                }
            };
            e.default = i;
        }).call(this, i("543d").default);
    },
    df8d: function(n, e, i) {
        i.r(e);
        var a = i("3bb7"), r = i("9186");
        for (var c in r) "default" !== c && function(n) {
            i.d(e, n, function() {
                return r[n];
            });
        }(c);
        i("5bcf");
        var u = i("f0c5"), s = Object(u.a)(r.default, a.b, a.c, !1, null, "4e0d1483", null, !1, a.a, void 0);
        e.default = s.exports;
    }
}, [ [ "26d5", "common/runtime", "common/vendor" ] ] ]);